home *** CD-ROM | disk | FTP | other *** search
- global colorauthoringpath
- global importwhere
- if the short name of this stack is "Resgenie‚Ñ¢" then
- showdialog 1, "503","Please use Resedit to edit these files. Sorry, but it's for your own good!" ,"True"
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- put the long name of this stack into importwhere
- delete word 1 of importwhere
- delete char 1 of importwhere
- delete last char of importwhere
- ask "What do you want to name your new PICT resource?" with "New"
- if it is empty then do restext("TEXT", "Exit", colorauthoringpath)
- put it into holdPICTName
- put Fullreslist ("W=" & importwhere) into resData -- This allows a check for duplicate names
- get offset (holdPictName, resData) -- of resources since FileToPICTRes does not
- if it is not "0" then
- ask "There is already a resource named" && quote & holdPictName & quote &&¬
- "in this stack. Do you want to rename this picture before importing it?"¬
- with holdPICTName
- if it is empty then do restext("TEXT", "Exit", colorauthoringpath)
- else
- put it into holdPICTName
- end if
- end if
- get FileToPICTRes ( importwhere,holdPictname ,PICT)
- if the result is not empty then answer the result
- if it is "Cancel" then do restext("TEXT", "Exit", colorauthoringpath)
- do restext("TEXT", "importPictureList", colorauthoringpath)